package com.surprise.webcommon.bo;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ResponseLogItem.java
 * @author nick
 * 2015年4月9日
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ResponseLogItem<T> extends CommonResponse {
    private T data;

    public ResponseLogItem(int status, String msg, T data) {
        super(status, msg);
        this.data = data;
    }

    public ResponseLogItem() {
        super();
    }

    public ResponseLogItem(int status, String msg) {
        super(status, msg);
    }
    
    public static <T> ResponseLogItem<T> newResponseLogItem(int status, String msg, T data) {
        return new ResponseLogItem<T>(status, msg, data);
    }
}
